package com.lovegu.object.down;

/**
 * @author 老顾
 * @title: Template
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/21 18:50
 */
abstract class Template {
    public final void getTime() {
        long start = System.currentTimeMillis();
        code();
        long end = System.currentTimeMillis();
        System.out.println("执行时间是：" + (end - start));
    }
    public abstract void code();
}
